package Class.Advance.ComprehensiveTest.Sporter1;

//这个包是我自己写的，感觉不是很简洁，不过对于不同的需求，写出来的东西是不一样的，我感觉这个包适用于小型比赛中参与多个运动项目的组织
public class Test {
    public static void main(String[] args) {
        BasketballAthlete athlete1 = new BasketballAthlete("Jack", 20);
        athlete1.study();
        PingPongAthlete athlete2 = new PingPongAthlete("Nick", 25);
        athlete2.speak();
        athlete2.study();
        BasketBallCoach coach1 = new BasketBallCoach("Jack", 35);
        coach1.teach();
        PingPongCoach coach2 = new PingPongCoach("Black", 40);
        coach2.speak();
        coach2.teach();
    }
}
